<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>服务商管理系统</title>
<link href="${pageContext.servletContext.contextPath }/css/style.css" rel="stylesheet" type="text/css" />
<script src="${pageContext.servletContext.contextPath }/js/js.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.servletContext.contextPath }/js/jquery.js"></script>
<script type="text/javascript" src="${pageContext.servletContext.contextPath }/js/jquery-1.4.min.js"></script>

	<script type="text/javascript">
	$(function() {
	    $("#toggle").click(function() {
	        $("#content").slideToggle();
	    });
		
		$("#toggle1").click(function() {
	        $("#content1").slideToggle();
	    });
				$("#toggle2").click(function() {
	        $("#content2").slideToggle();
	    });
		
				$("#toggle3").click(function() {
	        $("#content3").slideToggle();
	    });
	});
	  function checkUserForm(){
		    var userName = $("#textfield").val();
		    var userPassword = $("#textfield2").val();
		    if(userName=="" || userPassword==""){
		      alert("用户名或密码不能为空");
		      return false;
		    	}
		          document.loginForm.submit();
		      }
		      //按回车键
		     document.onkeydown=function(){
		           if (event.keyCode == 13){
		             checkUserForm();
		           }
		          };
	</script>
</head>
<body>
<style type="text/css">
body { background: none repeat scroll 0 0 #F2F2F2;}
</style>
<div class="w">
    <div id="logo">
		 <a href=""><img width="170" height="60" src="${pageContext.servletContext.contextPath }/images/logo-2013-l.png"></a>
	     <b></b>
	</div>
</div>

<div id="entry" class=" w1">
        <div id="bgDiv" class="mc ">
            <div class="logo_left"><img src="${pageContext.servletContext.contextPath }/images/logo11.png" width="443" height="355"></div>
            <form name="loginForm" method="post" action="${pageContext.servletContext.contextPath }/background/loginCheck.html">
            <div class="form ">
            <span style="color: red;font-size: 12px;">${error}</span>
				<div class="item fore1">
                    <span>用户名:</span>
                    <div class="item-ifo">
                        <input type="text" class="text" name="username" id="textfield">
                        <div class="i-name ico"></div>
                    </div>
                </div>

                <div class="item fore2">
                    <span>密码:</span>
                    <div class="item-ifo">
                        <input type="password" class="text" name="password" id="textfield2">
						<div class="i-pass ico"></div>
					</div>
                </div>
                 <div class="item fore1">
                    <span>用户角色:</span>
                    <div class="item-ifo">
                        <select class="slectaa" name="type">
							<option value="serviceProvider">服务商</option>																	
							<option value="admin">系统管理员</option>
							<!-- <option value="operator">运营商</option>
							<option value="callCenter">callCenter</option> -->
						</select>
                    </div>
                </div>

                <div class="item login-btn2013">
                    <input type="button" tabindex="8" value="" class="login_bo" onclick="checkUserForm();">
                </div>
            </div>
</form>
        </div>
</div>

</body>
</html>
